import Vue from 'vue';
import Router from 'vue-router';
import Pos from '@/components/page/pos';
import House from '@/components/page/warehouse';
import Goods from '@/components/page/goods';
import Member from '@/components/page/member';
import Statistics from '@/components/page/statistics';
import Setting from '@/components/page/setting';

Vue.use(Router);

export default new Router({
  linkExactActiveClass: 'actv',
  routes: [
    {
      path: '/',
      name: 'pos',
      component: Pos,
    },
    {
      path: '/house',
      name: 'warehouse',
      component: House,
    },
    {
      path: '/goods',
      name: 'goods',
      component: Goods,
    },
    {
      path: '/member',
      name: 'member',
      component: Member,
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: Statistics,
    },
    {
      path: '/setting',
      name: 'setting',
      component: Setting,
    },
  ],
});
